package com.sdry.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 格式化时间工具
 * 
 * @author cb
 * @version 1.0 ,　2017-05-13 14:59:37
 */
public class FormatUtil {
	
	public static String fomatTime(Date birthday) {
		SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
		String format = simpleDateFormat.format(birthday);
		return format;
	}
	
	public static String ymdfomatTime(Date birthday) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
		String format = sdf.format(birthday);
		return format;
	}
}
